<?php
	class CreateOrder {
		public static function WAPay($array) {
			$sHtml = "<form id='sjpaysubmit' name='sjpaysubmit' action='http://www.agkau.cn/api' method='get'>";
			while (list ($key, $val) = each($array)) {
				$sHtml = $sHtml . "<input type='hidden' name='" . $key . "' value='" . $val . "'/>";
			}

			//submit按钮控件请不要含有name属性
			$sHtml = $sHtml . "安全检测中...即将跳转!</form>";

			$sHtml = $sHtml . "<script>document.forms['sjpaysubmit'].submit();</script>";

			return $sHtml;
		}
	}
?>